package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import androidx.databinding.ViewDataBinding;
import com.huawei.appgallery.foundation.card.base.bean.BaseDistCardBean;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.chy;
import o.ckt;
import o.eqx;
import o.exm;

public class SubstanceHostAppCard extends BaseDistCard<exm> {
    public /* synthetic */ void ˊ(ViewDataBinding viewDataBinding) {
        ˎ((exm) viewDataBinding);
    }

    public SubstanceHostAppCard(Context context) {
        super(context);
    }

    public void ˎ(exm o_exm) {
        super.ˊ(o_exm);
        ॱ(o_exm);
        ˋ(o_exm.ॱ);
        ʽ(o_exm.ॱ());
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (cardBean instanceof BaseDistCardBean) {
            BaseDistCardBean baseDistCardBean = (BaseDistCardBean) cardBean;
            ((exm) ʾ()).ʼ.setText(baseDistCardBean.v_());
            ((exm) ʾ()).ˋ.setText(baseDistCardBean.ˏˏ());
            eqx.ˎ(((exm) ʾ()).ˏ, baseDistCardBean.ॱˌ());
            if (baseDistCardBean.ٴ() != 0) {
                ((exm) ʾ()).ˋ.setText(baseDistCardBean.ߴ());
            }
        }
    }

    public void ॱ(final chy o_chy) {
        ((exm) ʾ()).ˏ.setOnClickListener(new ckt(new OnClickListener(this) {
            final /* synthetic */ SubstanceHostAppCard ˏ;

            public void onClick(View view) {
                if (o_chy != null) {
                    o_chy.ˏ(0, this.ˏ);
                }
            }
        }));
    }
}
